
import request from '../utils/request';
import logRequest from '../utils/requestNoToken'

// 获取下拉
export const getPhomeMail = () => {
    return request.get('/zsrencai/api/person/resume/select/information')

}

// 修改个人信息
export const editResume = query => {
    return request.post('/zsrencai/api/person/resume/edit/resume', query)
}
// 上传头像接口
export const uploadImg = query => {
    return request.post('/zsrencai/api/sys/admin/file/image/upload', query)
}

// 新增个人信息
export const updatePersonal = query => {
    return request.post('/zsrencai/api/person/resume/insertResume', query)
}

// 编辑求职意向
export const updatePurpose = query => {
    return request.post('/zsrencai/api/person/resume/insert-purpose/info', query)
}

// 修改教育经历
export const updateEducation = query => {
    return request.post('/zsrencai/api/person/resume-edit/insert-education', query)
}

// 修改语言能力
export const updateLanguage = query => {
    return request.post('/zsrencai/api/person/resume-edit/insert-language', query)
}
// 修改学习经历
export const updateLearn = query => {
    return request.post('/zsrencai/api/person/resume-edit/insert-train', query)
}

//修改工作经历
export const updateWork = query => {
    return request.post('/zsrencai/api/person/resume-edit/insert-work', query)
}

// 修改技能特长
export const updateAbility = query => {
    return request.post('/zsrencai/api/person/resume-edit/insert-skill', query)
}

// 修改奖励
export const updateAward = query => {
    return request.post('/zsrencai/api/person/resume-edit/insert/resume-award', query)
}

// 修改自我评价
export const updateMark = query => {
    return request.post('/zsrencai/api/person/resume/insert/hobbies-assessment/info', query)
}

// 刷新简历
export const refreshResume = query => {
    return request.get(`/zsrencai/api/person/resume/edit-refresh-time/${query}`)
}
// 自动刷新简历
export const startOrStop = query => {
    return request.put(`/zsrencai/api/person/resume/startOrStop/refresh-time`, query)
}

// 删除工作经历
export const deleteWork = query => {
    return request.delete(`/zsrencai/api/person/resume-edit/delete/work/${query}`, { data: {} })
}

// 删除教育经历
export const deleteEducation = query => {
    return request.delete(`/zsrencai/api/person/resume-edit/delete/education/${query}`, { data: {} })
}

// 删除语言能力
export const deleteLanguage = query => {
    return request.delete(`/zsrencai/api/person/resume-edit/delete/language/${query}`, { data: {} })
}

// 删除学习经历
export const deleteLearn = query => {
    return request.delete(`/zsrencai/api/person/resume-edit/delete/train/${query}`, { data: {} })
}

// 删除技术
export const deleteSkill = query => {
    return request.delete(`/zsrencai/api/person/resume-edit/delete/skill/${query}`, { data: {} })
}

// 删除奖励
export const deleteAward = query => {
    return request.delete(`/zsrencai/api/person/resume-edit/delete/resume-award/${query}`, { data: {} })
}

// 查询信息
export const getInfo = query => {
    return request.get(`/zsrencai/api/person/resume/edit/info/${query}`, query)
}
// 省市区字典 
export const getDomicilePlace = () => {
    return logRequest.get('/zsrencai/api/sys/admin/pr/find/tree')
}

